<template>
	<view>
			<!-- 顶部导航栏 -->
			<cu-custom bgColor="bg-cyan">
				<block slot="content">导航栏</block>
			</cu-custom>
			
			<view class="smart-container">
				<view class="smart-panel-title">1.容器</view>
				<view class="smart-panel-h" @click="goDetailPage('view')">
					<text>view视图</text>
				</view>
	
				<view class="smart-panel-h" @click="goDetailPage('scroll-view')">
					<text>scroll-view滚动视图</text>
				</view>
				
				<view class="smart-panel-h" @click="goDetailPage('swiper')">
					<text>swiper轮播图视图</text>
				</view>
				
				<view class="smart-panel-title">CSS知识补充</view>
				<view class="smart-panel-h" @click="goDetailPage('flex')">
					<text>Flex布局</text>
				</view>
			</view>
			
			<view class="smart-panel-title">2.基础内容</view>
			<view class="smart-panel-h" @click="goDetailPage('text')">
				<text>text文本编辑</text>
			</view>
			<view class="smart-panel-h" @click="goDetailPage('rich-text')">
				<text>rich-text富文本编辑</text>
			</view>
			<view class="smart-panel-h" @click="goDetailPage('progress')">
				<text>progress进度条</text>
			</view>
			<cu-tabbar :index="0"></cu-tabbar>
		</view>
	
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			goDetailPage(e) {
				if (typeof e === 'string') {
					uni.navigateTo({
						url: 'pages/component/' + e + '/' + e,
					});
				} else {
					uni.navigateTo({
						url: e.url
					})
				}
			}
		}
	}
</script>

<style>
</style>